import request from '@/utils/request'

// 获取指定路径的ftp文件并下载到本地
export function getFtpRecord(data) {
  return request({
    method: 'post',
    url: '/editing/ftp/getFtpRecord',
    data
  })
}

export function getClientNamesByUser(data) {
  return request({
    method: 'get',
    url: '/editing/ftp/getOwnFtpClient?userName=' + data,
    data
  })
}

export function readFtpFileContent(data) {
  return request({
    method: 'post',
    url: '/editing/ftp/readFtpFileContent',
    data
  })
}

export function downloadFtpFile(data) {
  return request({
    method: 'post',
    url: '/editing/ftp/downloadFtpFile',
    data
  })
}

export function parseFtpFile(data) {
  return request({
    method: 'post',
    url: '/editing/ftp/parseFtpFile',
    data
  })
}

export function forceAccess(data) {
  return request({
    method: 'post',
    url: '/editing/ftp/forceAccess',
    data
  })
}

export function compareKafka2Xml(data) {
  return request({
    method: 'post',
    url: '/editing/ftp/compareKafka2Xml',
    data
  })
}

export function getBasicInfo(data) {
  return request({
    method: 'post',
    url: 'editing/basicInfo/getBasicInfo',
    data
  })
}

export function insertBasicInfo(data) {
  return request({
    method: 'post',
    url: 'editing/basicInfo/insertBasicInfo',
    data
  })
}

export function confirmBasicInfo(data) {
  return request({
    method: 'post',
    url: 'editing/basicInfo/confirmBasicInfo',
    data
  })
}

export function deleteBasicInfo(data) {
  return request({
    method: 'post',
    url: 'editing/basicInfo/deleteBasicInfo',
    data
  })
}

export function updateBasicInfo(data) {
  return request({
    method: 'post',
    url: 'editing/basicInfo/updateBasicInfo',
    data
  })
}

export function getTopicInfo(data) {
  return request({
    method: 'post',
    url: 'editing/topicInfo/getTopicInfo',
    data
  })
}

export function updateTopicInfo(data) {
  return request({
    method: 'post',
    url: 'editing/topicInfo/updateTopicInfo',
    data
  })
}

export function confirmTopicInfo(data) {
  return request({
    method: 'post',
    url: 'editing/topicInfo/confirmTopicInfo',
    data
  })
}

export function deleteTopicInfo(data) {
  return request({
    method: 'post',
    url: 'editing/topicInfo/deleteTopicInfo',
    data
  })
}


